<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- Bootstrap -->
    <link href="__STATIC__/admin/assets/css/vendor/bootstrap/bootstrap.min.css" rel="stylesheet">
    <!--引入图标样式-->
    <link rel="stylesheet" href="__STATIC__/admin/assets/font-awesome/css/font-awesome.min.css">
    <!--引入复选框样式-->
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/vendor/bootstrap-checkbox.css">
    <!--引入下拉表单-->
    <link rel="stylesheet" href="__STATIC__/admin/bootstrap-select/dist/css/bootstrap-select.css">
    <!--引入自定义样式-->
    <link href="__STATIC__/admin/assets/css/editorder.css?v=20180203" rel="stylesheet">
    <!--引入日志时间轴样式-->
    <link href="__STATIC__/admin/assets/css/order_log.css?v=20180203" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
</head>
<body>
<style>
    .input-group[class*=col-]{
        float: left;
        margin-top: 20px;
    }
    [class*="col-"]{
        padding-right: 0;
        padding-left: 0;
    }
    .form-control,.input-group-addon{
        border-radius: 0;
        padding: 6px;
        background-color: #fff;
    }
    .radio label:after {
        font-size: 13px;
        content: "";
        text-align: center;
        display: inline-block;
        width: 16px;
        height: 16px;
        position: absolute;
        -o-transform: scale(0);
        -ms-transform: scale(0);
        -moz-transform: scale(0);
        -webkit-transform: scale(0);
        transform: scale(0);
        border-radius: 99px;
        left: 0px;
        top: 0px;
        background-color: #69d7de;
        border: 1px solid #69d7de;
    }
    .radio, .checkbox{
        padding-left: 20px;
    }
    .radio input[type=radio]:checked + label:before {
        border: 1px solid #69d7de;
    }
    .radio-transparent label{
        line-height: 17px;
        margin-right: 0;
    }
    .alert-red{

        color: #ff4a43;
        background-color: #ffdddc;
        border-color: #ffaca9;
    }
    .alert-red small{
        padding: 5px  10px;
        margin-top: 0px;
    }
    .input-group{
        position: relative;
        /*border:1px solid red;*/
    }
    .has-error .input-group-addon{
        border-color: red;
    }
    .has-error .form-control{
        border-color: red;
        border-left:1px solid red;
    }
    .has-error small.help-block,small.help-block{
        position: absolute;
        top: 30px;
        left: 0;
        right: 0;
        color: red;
    }
    .tab-pane ul.dropdown-menu{
        position: absolute;
        background: #fff;
        left: 0;
        z-index: 99999;
        border: 1px solid #ccc;
        min-width: 50px;
    }
    .layui-input-inline{
        width: 100%;
    }
    .history{
        border-top: 1px solid #b1b1b1;
        border-bottom: none !important;
    }
    .no-back{
        background: none;
        border: 0;
    }
    .dropdown-menu{
        max-height: 250px;
        overflow-y: auto;
    }
    .dropdown-menu li a img{
        width: 20px;
        margin-right: 10px;
    }
    .dropdown-toggle .title img{
        width: 20px;
        margin-right: 5px;
    }
    .dropdown-toggle{
        text-align: left;
    }
    .caret{
        float: right;
        margin-top: 8px;
    }
    /* 设置滚动条的样式 */
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    /* 滚动槽 */
    ::-webkit-scrollbar-track {
        /*  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);*/
        background-color: #f2f4f8;
    }

    ::-webkit-scrollbar-button {
        width: 12px;
        height: 0px;
        background-color: rgba(50, 50, 50, 0.05);
    }

    /* 滚动条滑块 */
    ::-webkit-scrollbar-thumb {
        background-color: rgba(50, 50, 50, 0.25);
        border: 2px solid transparent;
        border-radius: 10px;
        background-clip: padding-box;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: #999;
    }

    ::-webkit-scrollbar-thumb:window-inactive {
        background: #fff;

    }
    .checkbox-state{
        margin-top: 10px;
    }
    .checkbox-state:hover{
        background: #d0a8de;
        transition: .5s;
        cursor: pointer;
    }
    .checkbox-state:hover label{
        color: #ffffff;
        transition: .5s;
    }
    .un-state:hover label{
        color: #777a80;
    }
    .radio-transparent{
        padding: 0;
        padding-left:10px;
        padding-top: 9px;
    }
    .input-line-main{
        display: flex;
        display: -webkit-flex;
        display: -webkit-box;
    }
    .input-line-list{
        margin-left: 5px;
        flex: 1;
        -webkit-flex: 1;
        -webkit-box-flex: 1;
    }
    .input-line-list .input-group{
        margin: 5px 0 !important;
    }
    .un_checked span,.un_checked .edit-status,.un_checked select,.un_checked input{
        background: #eeeeee;
        cursor: not-allowed;
    }
    .click_checked span,.click_checked .edit-status,.click_checked select,.click_checked input{
        background: #c4eeb7 !important;
    }
    .bootstrap-select button{
        max-width: 130px;
    }
    .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default{
        background: transparent;
        border-radius: 0;
        /*border: 1px solid #ccc;*/
        border-color: #cccccc;
        border-left: 0;
    }
    .bootstrap-select button{
        outline: none !important;
    }
    .btn-default{
        border-radius: 0;
        border-color: #cccccc;
        /*border: 1px solid #ccc !important;*/
        border-left: 0;
    }
    .btn_box .btn-default{
        border:1px solid #cccccc;
        border-radius: 3px;
    }
    .unclick .bootstrap-select{background:#cecdcd !important;}
</style>
<div class="editorder">
    <div class="panel-body" style="padding-bottom: 80px;">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs">
            <li class="active" data-action="0">
                <a href="#home1" data-toggle="tab" aria-expanded="true">客资基本信息</a>
            </li>
            <li class="" data-action="0">
                <a href="#profile1" data-toggle="tab" aria-expanded="false">邀约环节</a>
            </li>
            <li class="" data-action="0">
                <a href="#store" data-toggle="tab" aria-expanded="false">门店环节</a>
            </li>
            <li class="" data-action="1">
                <a href="#messages1" data-toggle="tab" aria-expanded="false">操作日志</a>
            </li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <div class="tab-pane fade  active in" id="home1">
                <form class="form-horizontal" role="form" id="res_form" >
                    <div class="input-group col-md-12 col-sm-12  col-xs-12" style="border-bottom: 1px solid #d4d4d4;">
                        <h4 style="margin: 0;line-height: 25px;">
                            <img src="{$data.channel_path_text}" style="height: 25px;">
                            <span>{$data.name_z}</span>
                            {eq name="data.gender_z" value="0" }<i class="fa fa-venus" aria-hidden="true"></i>{/eq}
                            {eq name="data.gender_z" value="1" }<i class="fa fa-mars" aria-hidden="true"></i>{/eq}
                            {eq name="data.gender_z" value="2" }<i class="fa fa-question-circle-o" aria-hidden="true"></i>{/eq}
                            <b>{$data.phone_z}</b>
                            {eq name="data.urgent" value="1"}<i class="fa fa-flash" aria-hidden="true"></i>{/eq}
                            <label style="float: right;font-size: 10px;font-weight: normal;margin-top: 5px;">
                                <span>编号：{$data.id}</span>&emsp;
                                <span>录入时间：{$data.jdtime}</span>
                            </label>
                        </h4>
                    </div>
                    <input type="hidden" name="id" id="orderid" value="{$data.id}">
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <span style="color: #b824e6;background-color: #fff;">主要联系人</span>
                        <div style="width: 100%;margin-top: -8px;border-top: 1px solid #b824e6;"></div>
                    </div>
                    <div class="col-xs-12">
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right" name="name_z" {if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} disabled {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}disabled{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}disabled{/if} value="{$data.name_z}" placeholder="主要联系人">
                            <div class="input-group-addon" style="padding: 6px;{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} background:#efefef; {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}background:#efefef;{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}background:#efefef;{/if}">
                                <div class="btn-group">
                                    <button type="button" {neq name='data.gender_z' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} disabled {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}disabled{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}disabled{/if}{/neq} class="dropdown-toggle no-back" data-toggle="dropdown" style="border-left: 0;">
                                        <span class="title">
                                            {eq name="data.gender_z" value="0" }<i class="fa fa-venus" aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_z" value="1" }<i class="fa fa-mars" aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_z" value="2" }<i class="fa fa-question-circle-o" aria-hidden="true"></i>{/eq}
                                        </span>
                                        <input type="hidden" name="gender_z" value="{$data.gender_z}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-venus" aria-hidden="true"></i></a></li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-mars" aria-hidden="true"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right no-bor-left" name="phone_z" value="{$data.phone_z}" placeholder="主要联系人电话" {neq name='data.phone_z' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} disabled {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}disabled{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}disabled{/if}{/neq} >
                            <div class="input-group-addon" style="{neq name='data.phone_z' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} background:#efefef; {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}background:#efefef;{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}background:#efefef;{/if}{/neq}"><i class="fa fa-phone" aria-hidden="true"></i></div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right no-bor-left" name="wechat" value="{$data.wechat}" placeholder="主要联系人微信" {neq name='data.wechat' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} disabled {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}disabled{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}disabled{/if}{/neq}>
                            <div class="input-group-addon" style="{neq name='data.wechat' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} background:#efefef; {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}background:#efefef;{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}background:#efefef;{/if}{/neq}">                                <div class="btn-group">
                            <button type="button"  class="dropdown-toggle no-back" data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                        {eq name="data.jwxtype" value="0" }<i class="fa fa-wechat" aria-hidden="true" style="color: red;"> 未加</i>{/eq}
                                        {eq name="data.jwxtype" value="1" }<i class="fa fa-wechat" aria-hidden="true"> 已加</i>{/eq}
                                    </span>
                                <input type="hidden" name="jwxtype" value="{$data.jwxtype}">
                            </button>
                            <ul class="dropdown-menu sex" role="menu">
                                <li><a href="javascript:;" id="0"><i class="fa fa-wechat" aria-hidden="true" style="color: red;"> 未加</i></a></li>
                                <li><a href="javascript:;" id="1"><i class="fa fa-wechat" aria-hidden="true"> 已加</i></a></li>
                            </ul>
                        </div></div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right no-bor-left" name="qq" value="{$data.qq}" placeholder="主要联系人QQ" {neq name='data.qq' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} disabled {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}disabled{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}disabled{/if}{/neq}>
                            <div class="input-group-addon" style="{neq name='data.qq' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} background:#efefef; {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}background:#efefef;{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}background:#efefef;{/if}{/neq}"><i class="fa fa-qq" aria-hidden="true"></i></div>
                        </div>
                    </div>
                    <!--备用联系人-->
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <span style="color: #54a1e6;background-color: #fff;">备用联系人</span>
                        <div style="width: 100%;margin-top: -8px;border-top: 1px solid #54a1e6;"></div>
                    </div>
                    <div class="col-xs-12">
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right" name="name_f" value="{$data.name_f}" placeholder="备用联系人" {neq name='data.name_f' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} disabled {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}disabled{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}disabled{/if}{/neq}>
                            <div class="input-group-addon" style="padding: 6px;{neq name='data.name_f' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} background:#efefef; {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}background:#efefef;{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}background:#efefef;{/if}{/neq}">
                                <div class="btn-group">
                                    <button type="button" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.gender_f != 2)"}disabled{/if}{/in} class="dropdown-toggle no-back" data-toggle="dropdown" style="border-left: 0;">
                                        <span class="title">
                                            {eq name="data.gender_f" value="0" }<i class="fa fa-venus" aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_f" value="1" }<i class="fa fa-mars" aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_f" value="2" }<i class="fa fa-question-circle-o" aria-hidden="true"></i>{/eq}
                                        </span>
                                        <input type="hidden" name="gender_f" value="{$data.gender_f}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-venus" aria-hidden="true"></i></a></li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-mars" aria-hidden="true"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right no-bor-left" name="phone_f" value="{$data.phone_f}" placeholder="备用电话" {neq name='data.phone_f' value=''}{if condition="$data.jd_depar == 3"} {if condition="($diction eq 3) and ($data.jdry eq $Think.session.admin_user.adminid) and ($data.state >1)"} disabled {elseif condition="($diction eq 1) OR ($diction eq 2)"/}{if condition="($data.state >2)"}disabled{/if}{/if}{elseif condition="$data.jd_depar neq 3"/}disabled{/if}{/neq}>
                            <div class="input-group-addon"><i class="fa fa-phone" aria-hidden="true"></i></div>
                        </div>
                    </div>
                    <!--宝宝信息-->
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <span style="color: #4ec3cc;background-color: #fff;">宝宝信息</span>
                        <div style="width: 100%;margin-top: -8px;border-top: 1px solid #4ec3cc;"></div>
                    </div>
                    <div class="col-xs-12">
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.bbname != '')"}disabled{/if}{/in} class="form-control no-bor-right" name="bbname" value="{$data.bbname}" placeholder="宝宝姓名">
                            <div class="input-group-addon" style="padding: 6px;">
                                <div class="btn-group">
                                    <button type="button" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.gender_b != 2)"}disabled{/if}{/in} class="dropdown-toggle no-back" data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                                                                            {eq name="data.gender_b" value="0" }<i class="fa fa-venus" aria-hidden="true"></i>{/eq}
                                                                                            {eq name="data.gender_b" value="1" }<i class="fa fa-mars" aria-hidden="true"></i>{/eq}
                                                                                            {eq name="data.gender_b" value="2" }<i class="fa fa-question-circle-o" aria-hidden="true"></i>{/eq}
                                                                                        </span>
                                    <input type="hidden" name="gender_b" value="{$data.gender_b}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-venus" aria-hidden="true"></i></a></li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-mars" aria-hidden="true"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.bbname != '')"}disabled{/if}{/in} class="form-control no-bor-right no-bor-left"  name="bbcstime" id="date2" value="{$data.bbcstime}"  placeholder="出生日期">
                            <div class="input-group-addon"><i class="fa fa-birthday-cake" aria-hidden="true"></i></div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.bbname != '')"}disabled{/if}{/in} class="form-control no-bor-right no-bor-left"  name="bbage" value="{$data.bbage}"  placeholder="宝宝年龄">
                            <div class="input-group-addon"><i class="fa fa-telegram" aria-hidden="true"></i></div>
                        </div>
                    </div>
                    <!--其他信息-->
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <span style="color: #5db95d;background-color: #fff;">其他信息</span>
                        <div style="width: 100%;margin-top: -8px;border-top: 1px solid #5db95d;"></div>
                    </div>
                    <div class="col-xs-12">
                        <div class="col-md-4  col-xs-4">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    建单人员：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                <span type="button" class="dropdown-toggle form-control"  style="padding-left: 8px;border-left: 0;padding: 0;text-align: left;line-height: 32px;">
                                    {eq name="data.jdry" value=""}
                                        建单人员
                                    {else/}
                                        {$data.jdry_text}
                                    {/eq}
                                </span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4" style="margin-left: -2px;">
                            <div class="input-group form-group col-md-5 col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" disabled class="dropdown-toggle form-control" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    渠道：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7  col-xs-7">
                                <div class="btn-group unclick">
                                    <select id="channels" disabled name="channel" class="selectpicker" data-live-search="true" data-size="8" style="border-left: 0;" title="请选择渠道">
                                        {volist name='channel' id='va'}
                                        <option class="select-li" {eq name="va.id" value="$data.channel"}selected="selected"{/eq} value="{$va.id}" title="<img src='{$va.path}' width='20px' height='20px'>&nbsp;{$va.title}" data-content="<img src='{$va.path}' width='20px' height='20px'>{$va.title}">{$va.title}</option>
                                        {/volist}
                                    </select>
                                    <!--<button type="button" disabled class="dropdown-toggle form-control" data-toggle="dropdown" style="border-left: 0;border-right: 0 !important;">-->
                                    <!--<span class="title qudao-style">-->
                                            <!--{eq name="data.channel" value=""}-->
                                                <!--渠道-->
                                            <!--{else/}-->
                                                <!--<img src="{$data.channel_path_text}">-->
                                                <!--{$data.channel_text}-->
                                            <!--{/eq}-->
                                        <!--</span>-->
                                        <!--<span class="caret"></span>-->
                                        <!--<input type="hidden" name="channel" value="{$data.channel}" id="channels">-->
                                    <!--</button>-->
                                    <!--<ul class="dropdown-menu cheannele" role="menu">-->
                                        <!--{volist name='channel' id='va' }-->
                                        <!--<li><a href="javascript:;" id="{$va.id}"><img src="{$va.path}">{$va.title}</a></li>-->
                                        <!--{/volist}-->
                                    <!--</ul>-->
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4" style="margin-left: -2px;">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" disabled class="dropdown-toggle form-control"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    来源：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <select name="source" disabled {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.source != '')"}disabled{/if}{/in} id="source0" class="form-control" style="border-left: 0;">
                                    {eq name="data.source" value=""}
                                    <option value="0" >来源</option>
                                    {else/}
                                    <option value="{$data.source}">{$data.source_text}</option>
                                    {/eq}
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4  col-xs-4" style="display: none;margin-left: 1px;" id="banjishow">
                            <div class="input-group form-group col-md-5 col-xs-5">
                                <div class="btn-group">
                                <span type="button" disabled class="dropdown-toggle form-control" style="border-right: 0;text-align: center;margin-left: -2px">
                                    班级：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <select name="banji" disabled id="banji" class="form-control" style="border-left: 0;margin-left: -2px;">
                                        <option value="0" >班级</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4" style="margin-left: -2px;display: none;" id="shangkeriqi">
                            <div class="input-group form-group col-md-6  col-xs-6">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" disabled class="dropdown-toggle form-control"  style="border-right: 0 !important;text-align: center;">
                                        上课日期：
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-6 col-xs-6">
                                <div class="btn-group">
                                    <select name="xingqi" disabled id="xingqiri" class="form-control" style="border-left: 0;margin-left: -2px;">
                                        <option value="0" >请选择星期</option>
                                        {volist name='xingqi' id='vo'}
                                            <option value="{$vo}"  {if condition="$data['xingqi']== $vo"} selected="selected" {else}{/if}>{$vo}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-4 col-xs-4" style="margin-left: -4px;display: none;" id="xingqi">
                            <div class="input-group form-group col-md-6  col-xs-6">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" disabled  class="dropdown-toggle form-control"  style="border-right: 0 !important;text-align: center;">
                                        上课时间段：
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-6 col-xs-6">
                                <input type="text" disabled class="layui-input form-control no-bor-right no-bor-left" id="date15" name="shijianduan" value="{$data.shijianduan}" placeholder="上课时间段" style="border-right: 1px solid #ccc;">
                            </div>
                        </div>
                        <!---->
                    </div>
                    <div class="col-xs-12">
                        <div class="col-md-4 col-xs-4">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" class="dropdown-toggle form-control"  style="border-right: 0 !important;text-align: center;">
                                        拍摄方式：
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <button type="button" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.shot_mode != '')"}disabled{/if}{/in} class="dropdown-toggle form-control" data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                            {eq name="data.shot_mode" value=""}
                                                店内拍摄
                                            {else/}
                                                {$data.shot_mode_text}
                                            {/eq}
                                            </span> <span class="caret"></span>
                                    <input type="hidden" name="shot_mode" value="{$data.shot_mode}">
                                    </button>
                                    <ul class="dropdown-menu dropdown-select" role="menu">
                                        {volist name='shotmode' id='info'}
                                        <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                        {/volist}
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <!--<div class="col-md-4 col-xs-4" style="margin-left: -2px;">-->
                            <!--<div class="input-group form-group col-md-5  col-xs-5">-->
                                <!--<div class="btn-group" style="line-height: 20px;">-->
                                <!--<span type="button" class="dropdown-toggle form-control"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">-->
                                    <!--拍摄类型：-->
                                <!--</span>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="input-group form-group col-md-7  col-xs-7">-->
                                <!--<div class="btn-group">-->
                                    <!--<button type="button" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.leibie != '')"}disabled{/if}{/in} class="dropdown-toggle form-control" data-toggle="dropdown" style="border-left: 0;">-->
                                    <!--<span class="title">-->
                                            <!--{eq name="data.leibie" value=""}-->
                                                <!--未填写-->
                                            <!--{else/}-->
                                                <!--{$data.leibie_text}-->
                                            <!--{/eq}-->
                                        <!--</span> <span class="caret"></span>-->
                                    <!--<input type="hidden" name="leibie" value="{$data.leibie}">-->
                                    <!--</button>-->
                                    <!--<ul class="dropdown-menu dropdown-select" role="menu">-->
                                        <!--{volist name='leibie' id='info'}-->
                                        <!--<li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>-->
                                        <!--{/volist}-->
                                    <!--</ul>-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <div class="col-md-4 col-xs-4" style="margin-left: -1px;">
                            <div class="input-group form-group col-md-5 col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" {neq name='data.activity' value=''} disabled {/neq} class="dropdown-toggle form-control"  style="border-right: 0;padding: 0;text-align: center;line-height: 32px;">
                                    活动：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7  col-xs-7">
                                <div class="btn-group">
                                    <button type="button" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.activity != '')"}disabled{/if}{/in} class="dropdown-toggle form-control" data-toggle="dropdown" style="border-left: 0 !important;">
                                        <span class="title">
                                            {eq name="data.activity" value=""}
                                                未填写
                                            {else/}
                                                {$data.activity_text}
                                            {/eq}
                                        </span>
                                        <span class="caret"></span>
                                        <input type="hidden" name="activity" value="{$data.activity}">
                                    </button>
                                    <ul class="dropdown-menu dropdown-select" role="menu">
                                        <li><a href="javascript:;">未填写</a></li>
                                        {volist name='activity' id='info' }
                                        <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                        {/volist}
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4" style="margin-left: -2px;">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" class="dropdown-toggle form-control"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        意向度：
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7  col-xs-7">
                                <div class="btn-group">
                                    <button type="button" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.intention != '')"}disabled{/if}{/in} class="dropdown-toggle form-control" data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                        {eq name="data.intention" value=""}
                                            未填写
                                        {else/}
                                            {$data.intention_text}
                                        {/eq}
                                        </span> <span class="caret"></span>
                                    <input type="hidden" name="intention" value="{$data.intention}">
                                    </button>
                                    <ul class="dropdown-menu dropdown-select" role="menu">
                                        <li><a href="javascript:;">未填写</a></li>
                                        {volist name='yixiang' id='info'}
                                        <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                        {/volist}
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="col-md-4 col-xs-4">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    预算：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7  col-xs-7">
                                <div class="btn-group">
                                    <button type="button" {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.budget != '')"}disabled{/if}{/in} class="dropdown-toggle form-control" data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                            {eq name="$data.budget" value=""}
                                                未填写
                                            {else/}
                                                {$data.budget_text}
                                            {/eq}
                                        </span> <span class="caret"></span>
                                        <input type="hidden" name="budget" value="{$data.budget}">
                                    </button>
                                    <ul class="dropdown-menu dropdown-select" role="menu">
                                        <li><a href="javascript:;">未填写</a></li>
                                        {volist name='yusuan' id='info'}
                                        <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                        {/volist}
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4" style="margin-left: -1px;">
                            <div class="input-group form-group col-md-6 col-xs-6">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" class="dropdown-toggle form-control"  style="border-right: 0 !important;text-align: center;">
                                        预计拍摄时间：
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-6 col-xs-6">
                                <div class="btn-group">
                                    <input type="text"  {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.shot_time != '')"}disabled{/if}{/in} class="form-control no-bor-right no-bor-left"  name="shot_time" id="date13" value="{$data.shot_time}"  placeholder="预计拍摄时间" style="border-right: 1px solid #ccc;">
                                </div>
                            </div>
                        </div>
                    </div>
                    <!---->
                    <!--<div class="col-xs-12">
                        <div class="input-group form-group col-md-4 col-xs-4">
                            <div class="col-md-5 col-xs-5" style="padding-left: 0;padding-right: 0;">
                                <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" style="border-right: 0 !important;">
                                    <span class="title">地址</span> <i class="fa fa-map-marker"></i>
                                </button>
                            </div>
                            <div class="col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" style="border-right: 0 !important;">
                                        <span class="title">
                                            {eq name="province" value=""}
                                                省份
                                            {else/}
                                                {$data.province_text}
                                            {/eq}
                                        </span> <span class="caret"></span>
                                        <input type="hidden" name="province" value="{$data.province}">
                                    </button>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="javascript:;" id="1">A类</a></li>
                                        <li><a href="javascript:;" id="2">B类</a></li>
                                        <li><a href="javascript:;" id="3">C类</a></li>
                                        <li><a href="javascript:;" id="4">D类</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-2 col-xs-2">
                            <div class="btn-group">
                                <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" style="border-right: 0 !important;">
                                    <span class="title">
                                        {eq name="city" value=""}
                                                城市
                                        {else/}
                                            {$data.city_text}
                                        {/eq}
                                    </span>
                                    <span class="caret"></span>
                                    <input type="hidden" name="city" value="{$data.city}">
                                </button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="javascript:;" id="1">婚纱照</a></li>
                                    <li><a href="javascript:;" id="2">艺术照</a></li>
                                    <li><a href="javascript:;" id="3">母婴照</a></li>
                                    <li><a href="javascript:;" id="4">亲子照</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-2 col-xs-2">
                            <div class="btn-group">
                                <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" >
                                    <span class="title">
                                        {eq name="city" value=""}
                                                区县
                                        {else/}
                                            {$data.city_text}
                                        {/eq}
                                    </span>  <span class="caret"></span>
                                    <input type="hidden" name="county" value="{$data.county}">
                                </button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="javascript:;" id="1">婚纱照</a></li>
                                    <li><a href="javascript:;" id="2">艺术照</a></li>
                                    <li><a href="javascript:;" id="3">母婴照</a></li>
                                    <li><a href="javascript:;" id="4">亲子照</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-4 col-xs-4">
                            <div class="layui-input-inline">
                                <input type="text" class="form-control no-bor-left" value="{$data.address}"
                                       placeholder="详细地址" name="address"  >
                            </div>
                        </div>
                    </div>-->
                    <!---->
                    <div class="col-xs-12">
                        <div class="input-group form-group col-md-2 col-xs-2">
                            <div class="btn-group">
                                <span type="button" class="dropdown-toggle form-control"  style="height: 150px;text-align: center;border-right: none;line-height: 150px;padding: 0">
                                    推广备注
                                </span>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-10 col-xs-10" >
                            <div class="btn-group">
                                <textarea name="qdbz" placeholder="请输入推广备注"  {in name="diction" value="2,3"}{if condition="($data.state != 1) && ($data.qdbz != '')"}disabled{/if}{/in} style="border: 1px solid #ccc;height: 150px;width: 100%;resize: none;padding:10px;outline: none;" class="no-bor-left">{$data.qdbz}</textarea>
                            </div>
                        </div>
                    </div>
                    <!---->
                </form>
            </div>

            <div class="tab-pane fade" id="profile1">
                <form id="invitationform">
                    <input type="hidden" name="id" value="{$data.id}">
                    <div class="col-md-12 col-xs-12">
                        <div class="col-md-4 col-xs-4">
                            <div class="input-group form-group col-md-5 col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span {eq name="diction" value="3"}disabled{/eq} class="dropdown-toggle form-control" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        邀约组
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <select {eq name="diction" value="3"}disabled{/eq} class="select_all invitgroup dropdown-toggle form-control" name="yykf_group" id="group">
                                        <option value="0">未分配邀约</option>
                                        {volist name="yykf_group" id="info"}
                                        <option value="{$info.id}" {eq name="data.yykf_group" value="$info.id"} selected="selected" {/eq} >{$info.name}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4" style="margin-left: 5px;">
                            <div class="input-group form-group col-md-5 col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span {eq name="diction" value="3"}disabled{/eq} class="dropdown-toggle form-control"  style="padding: 0;text-align: center;line-height: 32px;">
                                        邀约人员
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <select {eq name="diction" value="3"}disabled{/eq} class="select_all dropdown-toggle form-control"  name="yykf" id="invit1" style="border-left: 0;">
                                        {eq name="data.yykf" value="" }
                                        <option>未分配邀约</option>
                                        {else/}
                                        <option value="{$data.yykf}">{$data.yykf_text}</option>
                                        {/eq}
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-2 col-xs-2" style="border:1px solid #ccc;padding-bottom: 15px;">
                        <div class="col-xs-12" style="height: 15px;margin-top:15px;padding: 0 5px;">
                            <span style="color: #5776e6;background-color: #fff;">选择状态</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #5776e6;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state {eq name='$data.shot_mode' value='49'}un-state{/eq}">
                            <div class="radio radio-transparent" style="margin: 0;{eq name='$data.shot_mode' value='49'}background: #eeeeee;cursor: not-allowed;{/eq}">
                                <input type="radio" name="state" id="edit-status3" class="radio_lable" {eq name="$data.shot_mode" value="49"}disabled{/eq} {eq name="$data.state" value="3" } checked {/eq} value="3" >
                                <label for="edit-status3">邀约进店</label>
                                <input type="hidden" name="instore" value="1">
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state {eq name='$data.shot_mode' value='49'}un-state{/eq}">
                            <div class="radio radio-transparent" style="margin: 0;{eq name='$data.shot_mode' value='49'}background: #eeeeee;cursor: not-allowed;{/eq}">
                                <input type="radio" name="state" id="edit-status4" {eq name="$data.shot_mode" value="49"}disabled{/eq} {eq name="$data.state" value="4" } checked {/eq}  class="radio_lable"  value="4" >
                                <label for="edit-status4">免费体验</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state {eq name='$data.shot_mode' value='49'}un-state{/eq}">
                            <div class="radio radio-transparent" style="margin: 0;{eq name='$data.shot_mode' value='49'}background: #eeeeee;cursor: not-allowed;{/eq}">
                                <input type="radio" name="state" id="edit-status11" {eq name="$data.shot_mode" value="49"}disabled{/eq} {eq name="$data.state" value="11" } checked {/eq} class="radio_lable"  value="11" >
                                <label for="edit-status11">线上成交</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state {eq name='$data.shot_mode' value='48'}un-state{/eq}">
                            <div class="radio radio-transparent" style="margin: 0; {eq name='$data.shot_mode' value='48'}background: #eeeeee;cursor: not-allowed;{/eq}">
                                <input type="radio" name="state" id="edit-status21" {eq name="$data.shot_mode" value="48"}disabled{/eq} {eq name="$data.state" value="21" } checked {/eq}  class="radio_lable"  value="21" >
                                <label for="edit-status21">邀约店外拍</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state">
                            <div class="radio radio-transparent" style="margin: 0;">
                                <input type="radio" name="state" id="edit-status5" class="radio_lable" {eq name="$data.state" value="5"}checked{/eq} value="5" >
                                <label for="edit-status5">下次跟踪</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state">
                            <div class="radio radio-transparent" style="margin: 0;">
                                <input type="radio" name="state" id="edit-status6" {eq name="$data.state" value="6" } checked {/eq} class="radio_lable"  value="6" >
                                <label for="edit-status6">无需追踪</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state {eq name='$data.shot_mode' value='49'}un-state{/eq}">
                            <div class="radio radio-transparent" style="margin: 0;{eq name='$data.shot_mode' value='49'}background: #eeeeee;cursor: not-allowed;{/eq}">
                                <input type="radio" name="state" id="edit-status7" {eq name="$data.shot_mode" value="49"}disabled{/eq} {eq name="$data.state" value="7" } checked {/eq} class="radio_lable"  value="7" >
                                <label for="edit-status7">未到流失</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-10 col-xs-10" style="border:1px solid #ccc;float: right;width: 548px;padding: 10px;padding-left: 5px;">
                        <div class="col-xs-12" style="height: 15px;margin:5px 0;">
                            <span style="color: #b824e6;background-color: #fff;">预约信息</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #b824e6;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.mendian' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control  edit-status edit-status3 edit-status4 edit-status11" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        门店/调度
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control no-bor-radius edit-status edit-status3 edit-status4 edit-status11" data-toggle="dropdown">
                                        <span class="title qudao-style">
                                            {eq name="$data.mendian" value="" }
                                                选择门店
                                            {else/}
                                            {$data.mendian_text}
                                            {/eq}
                                        </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="mendian" value="{$data.mendian}" >
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name="mendian" id="info"}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.name}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.photo_grapher' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status21" style="padding: 0;text-align: center;line-height: 32px;">
                                        摄影师
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control edit-status edit-status21" data-toggle="dropdown" style="border-left: 0;">
                                            <span class="title qudao-style">
                                                {eq name="$data.photo_grapher" value=""}
                                                    暂无摄影师
                                                {else/}
                                                    {$data.photo_grapher_text}
                                                {/eq}
                                            </span> <span class="caret"></span>
                                            <input type="hidden" name="photo_grapher" value="{$data.photo_grapher}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">暂无摄影师</a></li>
                                            {volist name='photographer' id='info'}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.username}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.budget' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status3" style="padding: 0;text-align: center;line-height: 32px;">
                                        预算
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control edit-status edit-status3" data-toggle="dropdown" style="border-left: 0;">
                                        <span class="title qudao-style">
                                            {eq name="$data.budget" value=""}
                                                未填写
                                            {else/}
                                                {$data.budget_text}
                                            {/eq}
                                         </span> <span class="caret"></span>
                                            <input type="hidden" name="budget" value="{$data.budget}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name='yusuan' id='info'}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-6 col-xs-6 input-line-list {neq name='$data.yyjdtime' value='1970-01-01 08:00:00'}click_checked{/neq}">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                        <span class="dropdown-toggle form-control edit-status edit-status3"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                            预约时间
                                        </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" class="form-control no-bor-radius edit-status edit-status3" name="yyjdtime" {neq name="$data.yyjdtime" value="1970-01-01 08:00:00"}value="{$data.yyjdtime}"{/neq} placeholder="预约进店时间" id="date5">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-xs-6 input-line-list {neq name='$data.yypstime' value='1970-01-01 08:00:00'}click_checked{/neq}">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status4 edit-status11 edit-status21"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        拍摄时间
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" class="form-control no-bor-radius edit-status edit-status4 edit-status11 edit-status21" name="yypstime" placeholder="请选择时间" id="date8"  {neq name="$data.yypstime" value="1970-01-01 08:00:00"}value="{$data.yypstime}"{/neq}>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.waipai_address' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-2  col-xs-2">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status21" style="padding: 0;text-align: center;line-height: 32px;">
                                        拍摄地址
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-10 col-xs-10">
                                    <div class="btn-group">
                                        <input type="text" name="waipai_address" value="{$data.waipai_address}"
                                               class="form-control edit-status edit-status21" placeholder="请输入外拍摄地址" style="border-left: 0 !important;">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12" style="height: 15px;margin:5px 0;">
                            <span style="color: #54a1e6;background-color: #fff;">支付信息</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #54a1e6;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.payment' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status11" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        支付方式
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control edit-status edit-status11" data-toggle="dropdown">
                                        <span class="title">
                                            {eq name="$data.payment" value=""}
                                                支付方式
                                            {else/}
                                                {$data.payment_text}
                                            {/eq}
                                        </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="payment" value="{$data.payment}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name="payment" id="info"}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.code' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status11" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        验证码
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text"  name="code" value="{$data.code}" class="form-control edit-status edit-status11" placeholder="例:0001">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.pay_order' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status11" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        订单号
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text"  name="pay_order" value="{$data.pay_order}" class="form-control edit-status edit-status11" placeholder="例:0001">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.txje' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status11" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        套系金额
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" value="{$data.txje}" class="form-control edit-status edit-status11" name="txje" placeholder="￥0.00">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.ysje' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status11" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        应收金额
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" value="{$data.ysje}" class="form-control edit-status edit-status11" name="ysje" placeholder="￥0.00">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.ssje' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status11" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        实收金额
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" value="{$data.ssje}" class="form-control edit-status edit-status11" name="ssje" placeholder="￥0.00">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12" style="height: 15px;margin:5px 0;">
                            <span style="color: #5db95d;background-color: #fff;">其他信息</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #5db95d;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-6 col-xs-6 input-line-list {neq name='$data.track' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status5"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        下次跟踪原因
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control no-bor-radius edit-status edit-status5" data-toggle="dropdown">
                                        <span class="title qudao-style">
                                        {eq name="$data.track" value="" }
                                         下次跟踪原因
                                        {else/}
                                         {$data.track_text}
                                        {/eq}
                                    </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="track" value="{$data.track}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu" >
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name="track" id="vq" }
                                            <li><a href="javascript:;" id="{$vq.id}">{$vq.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-xs-6 input-line-list {neq name="data.zztime" value="1970-01-01 08:00:00"}click_checked{/neq}">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status5" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        追踪时间
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <input type="text" class="form-control no-bor-radius edit-status edit-status5" name="zztime" placeholder="请选择时间" id="date7" {neq name="data.zztime" value="1970-01-01 08:00:00"}value="{$data.zztime}"{/neq}>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12 col-xs-12 input-line-main">
                        <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.tracking' value=''}click_checked{/neq}">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status6" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        无需追踪原因
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control no-bor-radius edit-status edit-status6" data-toggle="dropdown" >
                                            <span class="title">
                                                {eq name="$data.tracking" value=""}
                                                    无需追踪原因
                                                {else/}
                                                    {$data.tracking_text}
                                                {/eq}
                                            </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="tracking" value="{$data.tracking}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name="tracking" id="vc"}
                                            <li><a href="javascript:;" id="{$vc.id}">{$vc.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.nostore' value=''}click_checked{/neq}">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status7"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        未到流失原因
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle form-control no-bor-radius edit-status edit-status7" data-toggle="dropdown">
                                        <span class="title">
                                            {eq name="$data.nostore" value=""}
                                                未到流失原因
                                            {else/}
                                                {$data.nostore_text}
                                            {/eq}
                                        </span>
                                        <span class="caret"></span>
                                        <input type="hidden" name="nostore" value="{$data.nostore}">
                                    </button>
                                    <ul class="dropdown-menu dropdown-select" role="menu">
                                        <li><a href="javascript:;" id="">未填写</a></li>
                                        {volist name="nostore" id="vo"}
                                        <li><a href="javascript:;" id="{$vo.id}">{$vo.title}</a></li>
                                        {/volist}
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                    </div>
                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div id="invitations" class="editor">
                        </div>
                        <textarea id="invitations-text" name="yybz" style="display: none;resize: none;outline: none;">{$data.yybz}</textarea>
                    </div>
                </form>
                <div class="col-md-12 history col-xs-12" >
                    <span class="historylog" onclick="showlog(this)">历史邀约记录</span>
                    <div class="order-log-model log">
                        <div class="wrapper">
                            <div class="list">
                                <ul>
                                    {if  condition="(is_array($logs) AND (count($logs) == 0))"}
                                    <li class="cls">
                                        <img class="log_img" src="__STATIC__/admin/assets/avatars/user.jpg" alt="">
                                        <div class="more">
                                            <div class="cont">
                                                <p>暂无邀约记录</p>
                                            </div>
                                        </div>
                                    </li>
                                    {else/}
                                    {volist name='logs' id='info'}
                                    <li class="cls">
                                        <img class="log_img" src="{$vo.logimg|default='__STATIC__/admin/assets/avatars/user.jpg'}" alt="">
                                        <div class="more">
                                            <div class="cont">
                                                <label>{$info.state_text}</label>
                                                <p>{in name="info.state" value="5,6,7,8,9,10,12" }
                                                    {$info.state_text}原因：
                                                    {$info.nostore_text}
                                                    {$info.track_text}
                                                    {$info.tracking_text}
                                                    {/in}
                                                </p>
                                                <p>{in name="info.state"  value="3,4,11"}
                                                    门店：{$info.mendian_text}
                                                    {/in}
                                                </p>
                                                {eq name="info.state" value="11"}
                                                支付方式：{$info.payment_text}&nbsp;，&nbsp;
                                                订单编号：{$info.pay_order}
                                                <p>套系金额：{$info.txje}&nbsp;元，</p>
                                                <p>应收金额：{$info.ysje}&nbsp;元，</p>
                                                <p>实收金额：{$info.ssje}&nbsp;元，</p>
                                                <p>预约拍摄时间：{$info.yypstime | date="Y-m-d H:i",###}</p>
                                                {/eq}
                                                {eq name="info.state" value="3"}
                                                预算：{$info.budget_text} &emsp;
                                                预约到店时间：{neq name="info.yyjdtime" value=""}{$info.yyjdtime | date="Y-m-d H:i",###}{/neq}
                                                {/eq}
                                                {eq name="info.state" value="4"}
                                                预约拍摄时间：{neq name="info.yypstime" value=""}{$info.yypstime | date="Y-m-d H:i",###}{/neq}
                                                {/eq}
                                                {eq name="info.state" value="5"}
                                                下次追踪时间：{neq name="info.zztime" value=""}{$info.zztime | date="Y-m-d H:i",###}{/neq}
                                                {/eq}
                                                {eq name="info.state" value="21"}
                                                <p>摄影师：{$info.photo_grapher_text}</p>
                                                <p>预约拍摄时间：{$info.yypstime | date="Y-m-d H:i",###}</p>
                                                <p>预约拍摄地址：{$info.waipai_address}</p>
                                                {/eq}
                                                <p>邀约备注：{$info.yybz}</p>
                                            </div>
                                            <div class="date">
                                                <span>操作人：<i style="color:#d95223;">{$info.personnel_text}</i>&emsp;</span>
                                                <span>操作时间：<i style="color:#d95223;">{$info.time|date='Y-m-d H:i:s',###}</i>&emsp;</span>
                                                <span>【PC端操作】</span>
                                            </div>
                                        </div>
                                    </li>
                                    {/volist}
                                    {/if}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="store">
                <form id="storeform">
                    <input type="hidden" name="id" value="{$data.id}">
                    <input type="hidden" name="mendian" value="{$data.mendian}" >
                    {in name="data.state" value="4,11,14,15,19,20"}
                    <input type="hidden" name="state" value="{$data.state}">
                    <input type="hidden" name="yypstime" value="{$data.yypstime}">
                    {/in}
                    <div class="col-md-12 col-xs-12 input-line-main" style="margin-top: 20px;margin-left: -5px;">
                        <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.mendian' value=''}click_checked{/neq}">
                            <div class="form-group col-md-5 col-xs-5 cent">
                                <div class="btn-group">
                                    <span disabled class="dropdown-toggle form-control edit-status" style="padding: 0;text-align: center;line-height: 32px;">
                                    服务门店
                                    </span>
                                </div>
                            </div>
                            <div class="form-group col-md-7 col-xs-7 cent">
                                <div class="btn-group">
                                    <input type="text" disabled class="form-control edit-status" value="{$data.mendian_text}" placeholder="" style="border-left: 0 !important;">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.menshi' value=''}click_checked{/neq}">
                            <div class="form-group col-md-5 col-xs-5 cent">
                                <div class="btn-group">
                                    <span disabled class="dropdown-toggle form-control edit-status" style="padding: 0;text-align: center;line-height: 32px;">
                                    服务门市
                                    </span>
                                </div>
                            </div>
                            <div class="form-group col-md-7 col-xs-7 cent" >
                                <div class="btn-group">
                                    <select disabled id="sales" class="form-control edit-status" name="menshi" style="border-left: 0;">
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.photo_grapher' value=''}click_checked{/neq}">
                            <div class="form-group col-md-5 col-xs-5 cent">
                                <div class="btn-group">
                                    <span disabled class="dropdown-toggle form-control edit-status" style="padding: 0;text-align: center;line-height: 32px;">
                                    摄影师
                                    </span>
                                </div>
                            </div>
                            <div class="form-group col-md-7 col-xs-7 cent" >
                                <div class="btn-group">
                                    <select disabled id="photo_graphers" class="form-control edit-status" name="photo_grapher" style="border-left: 0;">
                                        <option value="">暂无摄影师</option>
                                        {volist name="photographer" id="vo"}
                                        <option value="{$vo.id}" {eq name="vo.id" value="$data.photo_grapher"}selected{/eq}>{$vo.username}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-2 col-xs-2" style="border:1px solid #ccc;padding-bottom: 15px;">
                        <div class="col-xs-12" style="height: 15px;margin-top:15px;padding: 0 5px;">
                            <span style="color: #5776e6;background-color: #fff;">选择状态</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #5776e6;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state un-state">
                            <div class="radio radio-transparent" style="margin: 0;background: #eeeeee;cursor: not-allowed;">
                                <input type="radio" name="state" id="edit-status14" class="radio_lable" disabled {eq name="$data.state" value="14" } checked {/eq} value="14" >
                                <label for="edit-status14">进店成交</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state un-state">
                            <div class="radio radio-transparent" style="margin: 0;background: #eeeeee;cursor: not-allowed;">
                                <input type="radio" name="state" id="edit-status15" class="radio_lable" disabled {eq name="$data.state" value="15" } checked {/eq} value="15" >
                                <label for="edit-status15">流回成交</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state un-state">
                            <div class="radio radio-transparent" style="margin: 0;background: #eeeeee;cursor: not-allowed;">
                                <input type="radio" name="state" id="edit-status12" class="radio_lable" disabled {eq name="$data.state" value="12" } checked {/eq} value="12" >
                                <label for="edit-status12">未到店</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state un-state">
                            <div class="radio radio-transparent" style="margin: 0;background: #eeeeee;cursor: not-allowed;">
                                <input type="radio" name="state" id="edit-status13" class="radio_lable" disabled {eq name="$data.state" value="13" } checked {/eq} value="13" >
                                <label for="edit-status13">进店流失</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state un-state">
                            <div class="radio radio-transparent" style="margin: 0;background: #eeeeee;cursor: not-allowed;">
                                <input type="radio" name="state" id="edit-status19" class="radio_lable" disabled {eq name="$data.state" value="19" } checked {/eq} value="19" >
                                <label for="edit-status19">拍摄分次</label>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 checkbox-state un-state">
                            <div class="radio radio-transparent" style="margin: 0;background: #eeeeee;cursor: not-allowed;">
                                <input type="radio" name="state" id="edit-status20" class="radio_lable" disabled {eq name="$data.state" value="20" } checked {/eq} value="20" >
                                <label for="edit-status20">拍摄成功</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-10 col-xs-10" style="border:1px solid #ccc;float: right;width: 548px;padding: 10px;padding-left: 5px;">
                        <div class="col-xs-12" style="height: 15px;margin:5px 0;">
                            <span style="color: #b824e6;background-color: #fff;">支付信息</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #b824e6;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.payment' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status14 edit-status15" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        支付方式
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control edit-status edit-status14 edit-status15" data-toggle="dropdown">
                                        <span class="title">
                                            {eq name="$data.payment" value=""}
                                                支付方式
                                            {else/}
                                                {$data.payment_text}
                                            {/eq}
                                        </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="payment" value="{$data.payment}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name="payment" id="info"}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.code' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status14 edit-status15" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        验证码
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text"  name="code" value="{$data.code}" class="form-control edit-status edit-status14 edit-status15" placeholder="例:0001">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.pay_order' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status14 edit-status15" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        订单号
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text"  name="pay_order" value="{$data.pay_order}" class="form-control edit-status edit-status14 edit-status15" placeholder="例:0001">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.txje' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status14 edit-status15" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        套系金额
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" value="{$data.txje}" class="form-control edit-status edit-status14 edit-status15" name="txje" placeholder="￥0.00">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.ysje' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status14 edit-status15" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        应收金额
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" value="{$data.ysje}" class="form-control edit-status edit-status14 edit-status15" name="ysje" placeholder="￥0.00">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.ssje' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status14 edit-status15" style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        实收金额
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" value="{$data.ssje}" class="form-control edit-status edit-status14 edit-status15" name="ssje" placeholder="￥0.00">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12" style="height: 15px;margin:5px 0;">
                            <span style="color: #54a1e6;background-color: #fff;">拍摄信息</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #54a1e6;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.yypstime' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status14 edit-status15" style="padding: 0;text-align: center;line-height: 32px;">
                                        拍摄时间
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" class="form-control no-bor-radius edit-status edit-status14 edit-status15" name="yypstime" placeholder="请选择时间" id="date9" style="border-left: 0;"
                                               value="{$data.yypstime}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.xcpstime' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status19" style="padding: 0;text-align: center;line-height: 32px;">
                                        下次拍摄时间
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" class="form-control no-bor-radius edit-status edit-status19" name="xcpstime" placeholder="请选择时间" id="date12"  style="border-left: 0;"
                                               {neq name="$data.xcpstime" value="" } {else/} value="{$data.xptime}" {/neq}  >
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.hqje' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status20" style="padding: 0;text-align: center;line-height: 32px;">
                                        后期金额
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" class="form-control no-bor-radius edit-status edit-status20"  name="hqje"  style="border-left: 0;" placeholder="￥0.00"
                                               {neq name="$data.hqje" value="" }{else/}value="{$data.hqje}"{/neq}>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.xptime' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status20" style="padding: 0;text-align: center;line-height: 32px;">
                                        选片时间
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <input type="text" class="form-control no-bor-radius edit-status edit-status20" name="xptime" placeholder="请选择时间" id="date11" style="border-left: 0;"
                                               {neq name="$data.xptime" value="" } {else/} value="{$data.xptime}" {/neq}  >
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12" style="height: 15px;margin:5px 0;">
                            <span style="color: #5db95d;background-color: #fff;">其他信息</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #5db95d;"></div>
                        </div>
                        <div class="col-md-12 col-xs-12 input-line-main">
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.nostore' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status12"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        未到店原因
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control no-bor-radius edit-status edit-status12" data-toggle="dropdown">
                                            <span class="title">
                                            {eq name="$data.nostore" value=""}
                                                未到店原因
                                            {else/}
                                                {$data.nostore_text}
                                            {/eq}
                                            </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="nostore" value="{$data.nostore}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name="nostore" id="vq" }
                                            <li><a href="javascript:;" id="{$vq.id}">{$vq.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4 input-line-list {neq name='$data.instoreyy' value=''}click_checked{/neq}">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span class="dropdown-toggle form-control edit-status edit-status13"  style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        到店流失原因
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control no-bor-radius edit-status edit-status13" data-toggle="dropdown">
                                            <span class="title">
                                                {eq name="$data.instoreyy" value=""}
                                                    到店流失原因
                                                {else/}
                                                    {$data.instoreyy_text}
                                                {/eq}
                                            </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="instoreyy">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="">未填写</a></li>
                                            {volist name="instoreyy" id="vq" }
                                            <li><a href="javascript:;" id="{$vq.id}">{$vq.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="input-group col-md-12 col-xs-12" >
                        <div class="btn-group">
                            <textarea disabled style="height: 200px;width: 100%;resize: none;padding: 10px;outline: none;border: 1px solid #ccc;" name="msbz" placeholder="请输入门市接待备注">{$data.msbz}</textarea>
                        </div>
                    </div>
                </form>
                <div class="col-md-12 history col-xs-12">
                    <span class="historylog" onclick="showlog(this)">历史到店记录</span>
                    <div class="order-log-model log">
                        <div class="wrapper">
                            <div class="list">
                                <ul>
                                    {if  condition="(is_array($store_log) AND (count($store_log) == 0))"}
                                    <li class="cls">
                                        <img class="log_img" src="__STATIC__/admin/assets/avatars/user.jpg" alt="">
                                        <div class="more">
                                            <div class="cont">
                                                <p>暂无门店服务记录</p>
                                            </div>
                                        </div>
                                    </li>
                                    {else/}
                                    {volist name='store_log' id='ul'}
                                    <li class="cls">
                                        <img class="log_img" src="{$vo.logimg|default='__STATIC__/admin/assets/avatars/user.jpg'}" alt="">
                                        <div class="more">
                                            <div class="cont">
                                                <p><label style="color: red;">{$ul.state_text}</label><span style="float: right;">操作时间：{$ul.time | date='Y-m-d H:i:s',###}</span></p>
                                                <p>{$ul.store_note}</p>
                                                {eq name="ul.state" value="12"}
                                                <p>未到店原因：{$ul.nostore_text}</p>
                                                {/eq}
                                                {eq name="ul.state" value="13"}
                                                <p>进店流失原因：{$ul.instoreyy_text}</p>
                                                {/eq}
                                                {in name="ul.state" value="4,11,14,15,19,20"}
                                                <p>摄影师：{$ul.photo_grapher_text}</p>
                                                <p>预约拍摄时间：{$ul.yypstime | date='Y-m-d H:i:s',###}</p>
                                                {/in}
                                                {if condition="$ul.menshi != ''"}
                                                <p>门市：{$ul.menshi_text}</p>
                                                {/if}
                                                {eq name="ul.state" value="19"}
                                                <p>下次拍摄时间：{$ul.xcpstime | date='Y-m-d H:i:s',###}</p>
                                                {/eq}
                                                {eq name="ul.state" value="20"}
                                                <p>后期金额：{$ul.hqje}</p>
                                                <p>选片时间：{$ul.xptime | date='Y-m-d H:i:s',###}</p>
                                                {/eq}
                                                {in name="ul.state" value="14,15"}
                                                <p>调度：{$ul.mendian_text}</p>
                                                <p>支付方式：{$ul.payment_text}</p>
                                                <p>金牌单号：{$ul.pay_order}</p>
                                                <p>套系金额：{$ul.txje}</p>
                                                <p>应收金额：{$ul.ysje}</p>
                                                <p>实收金额：{$ul.ssje}</p>
                                                {/in}
                                            </div>
                                            <div class="date">
                                                <span>门店：{$ul.mendian_text}&emsp;&emsp;</span>
                                                <span>操作人：<i style="color:#d95223;">{$ul.operator_text}</i>&emsp;</span>
                                                &emsp;<span style="float: right;">【PC端操作】</span>
                                            </div>
                                        </div>
                                    </li>
                                    {/volist}
                                    {/if}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="messages1">
                <div class="order-log-model">
                    <div class="wrapper">
                        <div class="list">
                            <span>The end</span>
                            <ul>
                                {volist name="logdata" id="vo"}
                                <li class="cls">
                                    <img class="log_img" src="{$vo.logimg|default='__STATIC__/admin/assets/avatars/user.jpg'}" alt="">
                                    <div class="more">
                                        <div class="cont">
                                            <label>{$vo.czaction_text}-{$vo.id}</label>
                                            <p>{$vo.remark}</p>
                                        </div>
                                        <div class="date">
                                            <span>@{$vo.czry_text}<i style="color:#d95223;">【{$vo.depar_id_text}】</i>{$vo.create_time}</span>
                                            <span>【{$vo.khd_text}】</span>
                                            <label style="color: #a1a4b8;">【{$vo.state_text}】</label>
                                        </div>
                                    </div>
                                </li>
                                {/volist}
                            </ul>
                            <span>start</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-12 col-xs-12 btn_box">
        <button type="button" class="btn btn-primary">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal" style="margin: 20px;">取消</button>
    </div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="__STATIC__/admin/assets/js/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="__STATIC__/admin/assets/js/vendor/bootstrap/bootstrap.min.js"></script>
<!--引入下拉表单-->
<script src="__STATIC__/admin/bootstrap-select/dist/js/bootstrap-select.js?2018"></script>
<!--引入时间插件-->
<script type="text/javascript" src="__STATIC__/common/laydate/laydate.js"></script>
<!--引入公共js-->
<script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
<!--引入layer插件-->
<script type="text/javascript" src="__STATIC__/common/layer/layer.js"></script>
<!--引入富文本插件-->
<script type="text/javascript" src="__STATIC__/common/release/wangEditor.min.js"></script>
{include file="base/validate"}

<script>
    var phone_vile = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
    laydate.render({
        elem: '#date0',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date1',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date2',
        type: 'date'
    });
    laydate.render({
        elem: '#date3',
        type: 'date'
    });
    laydate.render({
        elem: '#date4',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date5',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date6',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date7',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date8',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date9',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date13',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date14',
        format: 'yyyy年MM月dd日'
    });
    laydate.render({
        elem: '#date15'
        ,type: 'time'
        ,range: true
    })


    var E = window.wangEditor
    var editor = new E('#invitations')
    var text = $('#invitations-text')

    editor.customConfig.onchange = function (html) {
        // 监控变化，同步更新到 textarea
        text.val(html)
    }

    function showlog(obj) {
        $(obj).next('.log').toggle();
    }

    // 隐藏“网络图片”tab
    editor.customConfig.showLinkImg = true;
    // 配置服务器端地址
    editor.customConfig.uploadImgServer = '/admin/Upload/editUpload'; //上传URL
    //    editor.customConfig.uploadImgMaxSize = 3 * 1024 * 1024;
    //    editor.customConfig.uploadImgMaxLength = 5;
    //    editor.customConfig.uploadFileName = 'myFileName';
    editor.customConfig.uploadImgHooks = {
        customInsert: function (insertImg, result, editor) {
            // 图片上传并返回结果，自定义插入图片的事件（而不是编辑器自动插入图片！！！）
            // insertImg 是插入图片的函数，editor 是编辑器对象，result 是服务器端返回的结果

            // 举例：假如上传图片成功后，服务器端返回的是 {url:'....'} 这种格式，即可这样插入图片：
            var url =result.data;
            insertImg(url);
            // result 必须是一个 JSON 格式字符串！！！否则报错
        }
    }
//    editor.customConfig.uploadImgShowBase64 = false;   // 使用 base64 保存图片
    editor.customConfig.menus = [
        'undo',  // 撤销
        'head',  // 标题
        'bold',  // 粗体
        'italic',  // 斜体
        'underline',  // 下划线
        'strikeThrough',  // 删除线
        'foreColor',  // 文字颜色
        'backColor',  // 背景颜色
        'emoticon',  // 表情
        'image',  // 插入图片
        'redo'  // 重复
    ];
    // 或者 var editor = new E( document.getElementById('#editor') )
    editor.create();
    // 初始化 textarea 的值
    text.val(editor.txt.html('{$data.yybz}'));
</script>
<!--引入时间插件end-->

<script>
    /*数据校验*/
    var fields ={
        name_z: {
            message: '用户名验证失败',
            validators: {
                notEmpty: {
                    message: '主要联系人不能为空'
                }
            }
        },
        phone_z: {
            message: 'The phone is not valid',
            validators: {
                regexp: {
                    regexp: phone_vile,
                    message: '请输入正确的手机号码'
                },
//                threshold :  10 ,
//                remote: {
//                    type: "post",
//                    url: '{:url(\'getContact\')}',
//                    message: '当前号码已经存在',
//                    delay: 1000,
//                    data: function (validator) {
//                        return {
//                            name: "phone_z|phone_f|wechat|qq",
//                            value: $('[name="phone_z"]').val(),
//                            id:$('#orderid').val()
//                        };
//                    }
//                }
            }
        },
        wechat: {
            message: 'The phone is not valid',
            validators: {
//                threshold :  6 ,
//                remote: {
//                    type: "post",
//                    url: '{:url(\'getContact\')}',
//                    message: '当前微信已经存在',
//                    delay: 2000,
//                    data: function(validator) {
//                        return {
//                            name: "phone_z|phone_f|wechat|qq",
//                            value: $('[name="wechat"]').val(),
//                            id:$('#orderid').val()
//                        };
//                    }
//                }
            }
        },
        phone_f: {
            message: 'The phone is not valid',
            validators: {
                regexp: {
                    regexp: phone_vile,
                    message: '请输入正确的手机号码'
                },
//                threshold :  10 ,
//                remote: {
//                    type: "post",
//                    url: '{:url(\'getContact\')}',
//                    message: '当前号码已经存在',
//                    delay: 1000,
//                    data: function(validator) {
//                        return {
//                            name: "phone_z|phone_f|wechat|qq",
//                            value: $('[name="phone_f"]').val(),
//                            id:$('#orderid').val()
//                        };
//                    }
//                },
                different: {
                    //不能和用户名相同
                    field: 'phone_z',
                    //需要进行比较的input name值
                    message: '不能和主电话相同'
                }

            }
        },
        qq: {
            message: 'The phone is not valid',
            validators: {
                regexp: {
                    regexp: /^[1-9][0-9]{4,14}$/,
                    message: '请输入正确的QQ号码'
                },
//                threshold :  10 ,
//                remote: {
//                    type: "post",
//                    url: '{:url(\'getContact\')}',
//                    message: '当前QQ号码已经存在',
//                    delay: 1000,
//                    data: function (validator) {
//                        return {
//                            name: "phone_z|phone_f|wechat|qq",
//                            value: $('[name="qq"]').val(),
//                            id:$('#orderid').val()
//                        };
//                    }
//                }
            }
        },
    }

    //页面初始化状态隐藏控制
    $(function () {
        {$json_state}.forEach(function (value) {
            if(value.id == {$data.state}){
                $("#edit-status"+value.id).attr('checked',true);
                $(".edit-status"+value.id).removeAttr('disabled');
                $(".edit-status"+value.id).attr('data-change',true);
            }else{
                for(var i=0;i<$(".edit-status"+value.id).length;i++){
                    if($(".edit-status"+value.id).eq(i).data('change') !== true || $(".edit-status"+value.id).eq(i).data('change') == undefined){
                        $(".edit-status"+value.id).eq(i).attr('disabled',true);
                    }
                }
            }
        })
    });

    //点击状态其他隐藏
    $('.radio_lable').click(function (index,length) {
        var state = $(this).val();
        $(".edit-status").removeAttr('data-change');
        $(".edit-status").attr('disabled',true);
        {$json_state}.forEach(function (value) {
            if(value.id == state){
                $("#edit-status"+value.id).attr('checked',true);
                $(".edit-status"+value.id).removeAttr('disabled');
                $(".edit-status"+value.id).attr('data-change',true);
            }else{
                for(var i=0;i<$(".edit-status"+value.id).length;i++){
                    if($(".edit-status"+value.id).eq(i).data('change') !== true || $(".edit-status"+value.id).eq(i).data('change') == undefined){
                        $(".edit-status"+value.id).eq(i).attr('disabled',true);
                    }
                }
            }
        });
    });

    //单个字符串与数组中相等的值
    function in_array(a, v) {
        var i;
        var array = a.split(',');
        for (i = 0; i < array.length; i++) {
            if (v == array[i]) {
                return true;
            }
        }
        return false;
    } // 返回-1表示没找到，返回其他值表示找到的索引

    $(function() {
        var channels =$('#channels');
        //初始化来源
        var channel = "{$data['channel']}";
        var source = "{$data['source']}";
        var banji = "{$data['banji']}";
        var obj = $('#source0');
        getsource(channel, obj ,source,banji,true);
        //获取邀约人员
        var id = "{$data['yykf_group']}";
        var divs = $('#invit1');
        var invit = "{$data['yykf']}";
        if(id != ""){
            groupinvit(id, divs ,invit);
        }

        //获取门店已分配的门市人员
        var id = "{$data.mendian}";
        var divs = $('#sales');
        var auth = '11,12,13';
        var menshi = "{$data.menshi}";
        group(id, divs,auth,menshi);

        /*调用父窗口的方法*/
        //验证主顾客手机重复
        $('[name="phone_z"]').on('blur',function () {
            var phone_z = $(this).val();
            var id = $('#orderid').val();
            var name = 'phone_z|phone_f|wechat|qq';
            window.parent.frames.validatorInfo(name,phone_z,id);
        });
        //验证备顾客手机重复
        $('[name="phone_f"]').on('blur',function () {
            var phone_f = $(this).val();
            var id = $('#orderid').val();
            var name = 'phone_z|phone_f|wechat|qq';
            window.parent.frames.validatorInfo(name,phone_f,id);
        });
        //验证微信重复
        $('[name="wechat"]').on('blur',function () {
            var wechat = $(this).val();
            var id = $('#orderid').val();
            var name = 'phone_z|phone_f|wechat|qq';
            window.parent.frames.validatorInfo(name,wechat,id);
        });
        //验证qq重复
        $('[name="qq"]').on('blur',function () {
            var qq = $(this).val();
            var id = $('#orderid').val();
            var name = 'phone_z|phone_f|wechat|qq';
            window.parent.frames.validatorInfo(name,qq,id);
        });
    });

    /*下拉菜单事件*/
    $('.dropdown-toggle').next('.dropdown-menu').find('li a').click(function () {
        $(this).parent().parent().prev('.dropdown-toggle').find('.title').html($(this).html());
        var identification = $(this).prop('id');
        $(this).parent().parent().prev('.dropdown-toggle').find('input').val(identification);
    });

    /*p判断是否时查看日志*/
    $('.nav-tabs').find('li').click(function () {
        if($(this).attr('data-action')=='1'){
            $('.btn_box').hide();
        }else {
            $('.btn_box').show();
        }
    });
    /* $('.nav-tabs').find('li').eq(3).click(function () {
         $('.btn_box').hide();
     })*/

    //推荐客资校验
    $('#res_form').bootstrapValidator({
        message: '',
        live: 'enabled',
        fields: fields
    });
    /*修改数据*/
    $('.btn-primary').click(function () {
        var form = $('.btn-primary').parent('.btn_box').prev('.panel-body');
        var formid=form.find('.tab-content').find('.active').find('form').attr('id');
        if(formid=='res_form') {
            var formData = new FormData($("#res_form")[0]);
            var bootstrapValidator = $("#res_form").data('bootstrapValidator');
            bootstrapValidator.validate();
            if (bootstrapValidator.isValid()) {
                if(!$("[name='phone_z']").val() && !$("[name='wechat']").val()){
                    return layer.msg("联系人电话或微信必填其一", {icon: 0});
                }
                {eq name = "data.addtype" value = "2" }
                if (!$("[name='rec_phone']").val() && !$("[name='rec_wechat']").val()) {
                    return layer.msg("推荐人电话或微信必填其一", {icon: 0});
                }
                {/eq}
                    $.ajax({
                        type: "POST",
                        url: "{:url('edit')}",
                        data: formData,
                        async: false,
                        cache: false,
                        contentType: false,
                        processData: false,
                        beforeSend:function(){
                            $('.btn-primary').attr("disabled","false"); //禁止点击
                        },
                        success: function (data) {
                            layer.msg(data.info, {icon: data.status});
                            setTimeout(function () {
                                var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                parent.layer.close(index); //再执行关闭
                                window.parent.location.reload();
                            }, 2000); //延迟演示
                        }
                    });
                    return false;
                } else return;

            }else if(formid=='invitationform'){
                saveInvite();
            }else if(formid=='storeform'){
                saveStore();
            }
        });
        /*点击取消按钮*/
        $('.btn-default').click(function () {
            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            parent.layer.close(index); //再执行关闭
        });

        /*修改客资获取对应的邀约组员*/
        $('#group').change(function () {
            var id = $('#group').val();
            var divs = $('#invit1');
            groupinvit(id, divs);

        });
        // 门店环节
        $('#o_store').change(function () {
            var id = $('#o_store').val();
            var divs = $('#sales');
            group(id, divs);
        });
        //邀约人员获取
        function groupinvit(id, obj ,invit){
            $.post("{:url('common/getuserByGroup')}", {depart_id: id}, function (result) {
                var html = '';
                obj.html('');
                if (id == '0') {
                    html += "<option value=''>未分配邀约</option>";
                } else {
                    if(result.length !=0){
                        for (var i in result) {
                            if (invit == result[i].id) {
                                html += "<option value='" + result[i].id + "' selected  >" + result[i].username + "</option>";
                            } else {
                                html += "<option value='" + result[i].id + "'>" + result[i].username + "</option>";
                            }
                        }
                    }else {
                        html += "<option value='' selected='selected'>暂无邀约人员</option>";
                    }

                }
                obj.append(html);
            });
        }


        // 获取获取门市
        function group(id, obj,auth,menshi) {
            $.post("{:url('common/getuserByGroup')}", {depart_id: id,auth_id:auth}, function (result) {
                var html = '';
                obj.html('');
                if (result == '0') {
                    obj.append(html);
                } else {
                    if(result.length == 0){
                        html += "<option value='0'>暂无门市</option>";
                    }else {
                        html += "<option value='0'>暂无门市</option>";
                        for (var i in result) {
                            if (menshi == result[i].id) {
                                html += "<option value='" + result[i].id + "' selected>" + result[i].username + "</option>";
                            } else {
                                html += "<option value='" + result[i].id + "'>" + result[i].username + "</option>";
                            }
                        }
                    }
                }
                obj.append(html);
            });
        }

        /*保存邀约记录*/
        function saveInvite() {
            var formData = new FormData($("#invitationform")[0]);
            $.ajax({
                type: "POST",
                url: "{:url('logSave')}",
                data: formData,
                async: false,
                cache: false,
                contentType: false,
                processData: false,
                beforeSend:function(){
                    $('.btn-primary').attr("disabled","false"); //禁止点击
                },
                success: function (data) {
                    layer.msg(data.info, {icon: data.status});
                    setTimeout(function () {
                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                        parent.layer.close(index); //再执行关闭
                        window.parent.location.reload();
                    }, 2000); //延迟演示
                }
            });
        }

        /*保存门店服务记录*/
        function saveStore() {
            var formData = new FormData($("#storeform")[0]);
            $.ajax({
                type: "POST",
                url: "{:url('saveStore')}",
                data: formData,
                async: false,
                cache: false,
                contentType: false,
                processData: false,
                beforeSend:function(){
                    $('.btn-primary').attr("disabled","false"); //禁止点击
                },
                success: function (data) {
                    layer.msg(data.info, {icon: data.status});
                    setTimeout(function () {
                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                        parent.layer.close(index); //再执行关闭
                        window.parent.location.reload();
                    }, 2000); //延迟演示
                }
            });
        }

//        $('.cheannele').find('li a').click(function () {
//            $('#channels').val($(this).attr('id'));
//            var channel = $('#channels').val();
//            var obj = $('#source0');
//            getsource(channel, obj);
//        });
        /*联动来源*/
        $('#channels').on('hidden.bs.select',function () {
            var channel = $(this).selectpicker('val');
            var obj = $('#source0');
            getsource(channel,obj);
        });

        /*根据渠道获取来源*/
        function getsource(data, obj, source,banji) {
            if (data != 0) {
                $.post("{:url('common/getSourceByChennel')}", {channel: data}, function (result) {
                    var html = "";
                    obj.html('');
                    if (result == '') {
                        html += "<option value='0'>暂无来源</option>";
                        $('#banjishow').hide();
                        $('#xingqi').hide();
                        $('#shangkeriqi').hide();
                        obj.append(html);
                    } else {
                        html += "<option value='0'>暂无来源</option>";
                        for (var i = 0; i < result.length; i++) {
                            if (source == result[i].id) {
                                html += "<option value=" + result[i].id + "  selected >" + result[i].title + "</option>"
                            } else {
                                html += "<option value=" + result[i].id + " >" + result[i].title + "</option>"
                            }

                        }
                        obj.append(html);
                    }
                });
                var banjis = $('#banji');
                $.post("{:url('common/getBanjiBySource')}", {source: data}, function (result) {
                    var html = "";
                    banjis.html('');
                    if (result == '') {
                        $('#banjishow').hide();
                        $('#xingqi').hide();
                        $('#shangkeriqi').hide();
                        html += "<option value='0' selected='selected'>暂无班级</option>";
                        banjis.append(html);
                    }else if(result.code==0){
                        return false;
                    } else {
                        for (var i = 0; i < result.length; i++) {
                            if (banji == result[i].id) {
                                html += "<option value=" + result[i].id + "  selected >" + result[i].banjiname + "</option>"
                            } else {
                                html += "<option value=" + result[i].id + " >" + result[i].banjiname + "</option>"
                            }
                        }
                        banjis.append(html);
                        $('#banjishow').show();
                        $('#xingqi').show();
                        $('#shangkeriqi').show();
                        // $.each(eval(result), function (i, n) {
                        //     $("<option value='" + n.id + "' selected='selected'>" + n.banjiname + "</optinon>").appendTo(banji);
                        // });
                    }
                })
            } else {
                $('#channels').prevAll('.title').html('渠道');
                var html = "<option value='0'>暂无来源</option>";
                obj.html('').append(html);
            }
        }

</script>
</body>
</html>